<template>
	<view>
		<button @click="checkAuth">授权</button>
	</view>
</template>

<script>
	import {
		ref,
		toRefs,
		reactive
	} from 'vue';
	export default {
		setup() {
			const checkAuth=()=>{
				uni.switchTab({
					url:"/pages/index/index"
				})
			}
			
			return {
				checkAuth
			}
		}
	}
</script>

<style scoped>
	button {
		background-color: #9b2b79;
		color: #fff;
		margin-top: 300rpx;
		width: 150rpx;
	}
</style>
